package com.woniuxy.com.demo.Util;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * description: JedisConstant <br>
 * date: 2022/1/4 7:35 下午 <br>
 * author: shesaifei <br>
 * version: 1.0 <br>
 */
@Component
public class JedisConstant implements InitializingBean {
    @Value("${jedis.host}")
    private String host;

    public static String HOST;

    @Override
    public void afterPropertiesSet() throws Exception {
        HOST = this.host;
    }
}
